package com.yike.user.service;

import com.yike.user.entity.PayChannel;
import com.yike.user.param.PayChannelPageParam;
import com.yike.common.base.BaseService;
import com.yike.common.pagination.Paging;
import com.yike.user.param.PayChannelParam;
import com.yike.user.vo.PayChannelVo;

/**
 * 支付渠道 服务类
 *
 * @author Sakura
 * @since 2024-11-15
 */
public interface PayChannelService extends BaseService<PayChannel> {

    /**
     * 保存
     *
     * @param payChannelParam
     * @return
     * @throws Exception
     */
    boolean savePayChannel(PayChannelParam payChannelParam) throws Exception;

    /**
     * 修改
     *
     * @param payChannelParam
     * @return
     * @throws Exception
     */
    boolean updatePayChannel(PayChannelParam payChannelParam) throws Exception;

    /**
     * 删除
     *
     * @param id
     * @return
     * @throws Exception
     */
    boolean deletePayChannel(Long id) throws Exception;

    PayChannelVo getPayChannel(Long id) throws Exception;

    /**
     * 获取分页对象
     *
     * @param payChannelPageParam
     * @return
     * @throws Exception
     */
    Paging<PayChannelVo> getPayChannelPageList(PayChannelPageParam payChannelPageParam) throws Exception;

}
